package com.primecodegen.common.GeneratedTargets;

import com.primecodegen.common.base.*;
import com.primecodegen.util.ComConstants;

/**
 *----------------------------------------------------------
 *----------------------------------------------------------
 * @author Mohammad Awwad
 * Version: v0.0
 * contact: mhmdawwad@gmail.com
 *-----------------------------------------------------------
 *-----------------------------------------------------------
 */
public class GeneratedTargetsTable extends BaseTable {

    public GeneratedTargetsTable() {
        init();
    }

    public GeneratedTargetsTable(int mainProject_ID) {
        this.mainProject_ID = mainProject_ID;
    }

    public GeneratedTargetsTable(String filePostName, String filePreName, String generateTo, String template, int mainProject_ID) {
        this.filePostName = filePostName;
        this.filePreName = filePreName;
        this.generateTo = generateTo;
        this.template = template;
        this.mainProject_ID = mainProject_ID;
    }
    
    
    public GeneratedTargetsOprCols Opr = new GeneratedTargetsOprCols();
    // ------------Members------------------
    private int ID;
    private String filePostName;
    private String filePreName;
    private String generateTo;
    private String template;
    private int mainProject_ID;

    // -----------Setters & Getters------------------

    /**
     * get generatedTarget's ID
     * @return int
     */
    public int getID() {
        return ID;
    }

    public void setID(int ID) {
        this.ID = ID;
    }

    public String getFilePostName() {
        return filePostName;
    }

    public void setFilePostName(String filePostName) {
        this.filePostName = filePostName;
    }

    public String getFilePreName() {
        return filePreName;
    }

    public void setFilePreName(String filePreName) {
        this.filePreName = filePreName;
    }

    public String getGenerateTo() {
        return generateTo;
    }

    public void setGenerateTo(String generateTo) {
        this.generateTo = generateTo;
    }

    public String getTemplate() {
        return template;
    }

    public void setTemplate(String template) {
        this.template = template;
    }

    public int getMainProject_ID() {
        return mainProject_ID;
    }

    public void setMainProject_ID(int mainProject_ID) {
        this.mainProject_ID = mainProject_ID;
    }

    @Override
    public void init() {

        ID = ComConstants.UNREALISTIC_INT;
        filePostName = ComConstants.UNREALISTIC_STRING;
        filePreName = ComConstants.UNREALISTIC_STRING;
        generateTo = ComConstants.UNREALISTIC_STRING;
        template = ComConstants.UNREALISTIC_STRING;
        mainProject_ID = ComConstants.UNREALISTIC_INT;
    }
}
